<!DOCTYPE html>
<html>
<head>
    <title>{$detail['title']}</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta content="application/xhtml+xml;charset=UTF-8" http-equiv="Content-Type">
    <meta content="no-cache,must-revalidate" http-equiv="Cache-Control">
    <meta content="no-cache" http-equiv="pragma">
    <meta content="0" http-equiv="expires">
    <meta content="telephone=no, address=no" name="format-detection">
    <link rel="stylesheet" type="text/css" href="../addons/amouse_article/template/mobile/css/a/reset.css" media="all">
    <link rel="stylesheet" type="text/css" href="../addons/amouse_article/template/mobile/css/a/common.css" media="all">
    <link rel="stylesheet" type="text/css" href="../addons/amouse_article/template/mobile/css/a/peak-7.css" media="all">
    <link rel="stylesheet" type="text/css" href="../addons/amouse_article/template/mobile/css/a/share_and_recommond.css">
    <link rel="stylesheet" type="text/css" href="../addons/amouse_article/template/mobile/css/a/font-awesome.css" media="all">
    <script type="text/javascript" async="" src="../addons/amouse_article/template/mobile/css/a/wtj.js"></script>
    <script type="text/javascript" src="../addons/amouse_article/template/mobile/css/a/jQuery.js"></script>
    <link href="../addons/amouse_article/template/mobile/css/news.css?v=20150404" rel="stylesheet" type="text/css"/>
    <style>
        img {
            max-width: 100% !important;
        }

        {
            $ _W [ 'styles' ] [ 'css' ]
        }
    </style>
    <script type="text/javascript">
        var uin = "";
        var key = "";
        var pass_ticket = "";
        //全局变量
        gSound = '{$detail['musicurl']}';
    </script>
    <script type="text/javascript" src="../addons/amouse_article/template/mobile/js/weixin_new.js"></script>
<div id='audiocontainer'></div>
<div class="body">
    <!--<section>
    <img onerror="this.parentNode.removeChild(this)" src="{$detail['thumb']}" style="width:100%;"><br>
    </section>-->
    <section class="section_body">
        <article class="article">
            <header>
                <h3>{$detail['title']}</h3>
                <sapn>{php echo date('Y-m-d H:i', $detail['createtime'])}
                </sapn>
                {if !empty($subscribeurl)}
                <a href="{$subscribeurl}">
                    {if empty($detail['author'])}{$_W['account']['name']} {else}{$detail['author']}{/if}</a>
                {else}
                <a href="{$set['guanzhuUrl']}">
                    {if empty($detail['author'])}{$_W['account']['name']} {else}{$detail['author']}{/if}
                </a>
                {/if}
            </header>
            <div class="content">
                {$detail['content']}
                {$wechat['account']}
            </div>
        </article>
    </section>
    <section style="width:95%; margin:0px auto;">
        <div id="mcover" onclick="document.getElementById('mcover').style.display='';" style="">
            <img src="../addons/amouse_article/template/mobile/css/a/guide.png">
        </div>
        <div class="text" id="content">
            <div id="mess_share">
                <div id="share_1">
                    <button class="button2"
                            onclick="document.getElementById('mcover').style.display='block'">
                        <img src="../addons/amouse_article/template/mobile/css/a/icon_msg.png">&nbsp;发送给朋友
                    </button>
                </div>
                <div id="share_2">
                    <button class="button2"
                            onclick="document.getElementById('mcover').style.display='block'">
                        <img src="../addons/amouse_article/template/mobile/css/a/icon_timeline.png">&nbsp;分享到朋友圈
                    </button>
                </div>
                <div class="clr"></div>
            </div>
        </div>
    </section>

    {data module="amouse_article" func="amouse_article_weixin_hot" return="true" assign="result"}
    {if !empty($result)}
    <div class="mod-main">
        <div class="module" id="recommedmodule" style="display: block;">
            <h3 class="title">热门账号推荐</h3>
            <div class="account-list">
                <ul>
                    {loop $result['list'] $row}
                    <li>
                        <a href="{$row['guanzhuUrl']}">
                            <div class="logo">
                                <img src="{php echo strpos($row['thumb'],'http://')===FALSE?($_W['attachurl'].$row['thumb']):$row['thumb']}" height="50" width="50">
                            </div>
                            <div class="nick nowrap">{$row[title]}</div>
                            <div class="arrow"><span>+关注</span></div>
                        </a>
                    </li>
                    {/loop}
                </ul>
            </div>
        </div>
    </div>
    {/if}
    <div style="padding-bottom:5px!important;">
        <a href="javascript:window.scrollTo(0,0);"
           style="font-size:12px;margin:5px auto;display:block;color:#fff;text-align:center;line-height:35px;background:#333;margin-bottom:-10px;">返回顶部</a>
    </div>
</div>


    <script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
    <script language='javascript'>
        <?php
                $jssdk = new JSSDK();
        $signPackage = $jssdk->GetSignPackage();
        ?>
        wx.config({
            debug:false,
            appId: "{$_W['account']['appid_share']}",
            timestamp: {$signPackage["timestamp"]},
            nonceStr: '{$signPackage["nonceStr"]}',
            signature: '{$signPackage["signature"]}',
            jsApiList: [
                'onMenuShareTimeline','onMenuShareAppMessage','onMenuShareWeibo'
            ]
        });
        var shareMeta = {
            imgUrl:"{$shareimg}",
            link :  "{$url}",
            desc : "{$detail['title']}",
            title : "{$detail['title']}"
        };
        wx.ready(function(){
            wx.onMenuShareTimeline(shareMeta);
            wx.onMenuShareAppMessage(shareMeta);
            wx.onMenuShareWeibo(shareMeta);
        });
    </script>